<!DOCTYPE html><%@ page pageEncoding="UTF-8"%><%@ include file="/include/commons.jsp"%>
<html>
	<head>
	<head>
		<meta charset="UTF-8">
		<title>文章列表</title>
		<link rel="stylesheet" href="${ctx }/css/admin.css">
		<script src="${ctx }/js/jquery-1.10.0.min.js"></script>
		<script src="${ctx }/js/admin.js" charset="utf-8"></script>
		<script src="${ctx }/js/table.js"></script>
		<script src="${ctx }/js/delete.js"></script>
	</head>
	<body>
		<div id="wrapper">
			<div id="menu"></div>
			<div id="sidebar"></div>
			<div id="content">
				<h1>文章列表 - 栏目: ${sessionScope.channel.title }</h1>
				<hr>
				<a href="article_add.jsp">添加文章</a>
				<hr>
				<table>
					<tr>
						<th>编号</th>
<!-- 						<th>内容</th> -->
						<th>摘要</th>
						<th>标题</th>
						<th>时间</th>
						<th>点击</th>
						<th>来源</th>
						<th colspan="2">操作</th>
					</tr>
					<c:forEach var="article" items="${sessionScope.channel.articles }" varStatus="vs">
					<tr>
						<td>${vs.count }</td>
<%-- 						<td><c:out value="${fn:substring(article.content,0,100)}"/></td> --%>
						<td>${article.summary }</td>
						<td>${article.title }</td>
						<td><fmt:formatDate value="${article.time }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
						<td>${article.clicks }</td>
						<td>${article.origin }</td>
						<td><a href="${ctx }/article_search?article.id=${article.id }">编辑</a></td>
						<td><a class="delete" href="${ctx }/article_remove?article.id=${article.id }">删除</a></td>
					</tr>
					</c:forEach>
				</table>
			</div>
			<div id="clear"></div>
		</div>
	</body>
</html>